//package com.ww.boot.bytecode.changeJar;
//
//
//import com.sun.tools.attach.AgentInitializationException;
//import com.sun.tools.attach.AgentLoadException;
//import com.sun.tools.attach.AttachNotSupportedException;
//import com.sun.tools.attach.VirtualMachine;
//
//import java.io.IOException;
//
//
///**
// * 直接修改jvm内部存储的字节码
// */
//public class Attacher {
//    public static void main(String[] args) throws AttachNotSupportedException, AgentLoadException, AgentInitializationException, IOException {
//
//        VirtualMachine vm = VirtualMachine.attach("10104"); // 目标 JVM pid
//        vm.loadAgent("C:\\Users\\ZH500\\桌面\\my\\boot-tools\\boot-bytecode\\target\\boot-bytecode-1-SNAPSHOT-jar-with-dependencies.jar");
//    }
//}